<template>
    <div class="my-radio">
      <div v-for="item in radioData" class="row" >
          <el-radio v-model="radio" :label=item @input="change(item)">{{ item.xuanxiangneirong }}</el-radio>
      </div>
    </div>
</template>
<script>
  export default {
    name: 'my-radio',
    props: {
        radioData: {
            required: true
        },
        radioName: {
            required: true
        }
    },
    data() {
      return {
        radio: {}
      }
    },
    created() {
    },
    methods: {
      change(data) {
        this.$forceUpdate()
        this.$emit('radioChange', data, this.radioName);
      },
    }
  }
</script>
